#!/bin/bash

#Authors:
#  Bruno Goncalves Araujo <www.biglinux.com.br>
#
#License: GPLv2 or later
#################################################


#Translation
export TEXTDOMAINDIR="/usr/share/locale-langpack"
export TEXTDOMAIN=bigcontrolcenter-internet-wicd


if ! [ -e /usr/bin/wicd-client ]; then

if [ -e /usr/bin/nm-applet ]; then
  kdialog --yesno $"O Wicd e utilizado por esse painel, mas nao esta instalado, devo instalar agora?
Atencao: Isso ira remover o gerenciador de conexao Network Manager."
else
  kdialog --yesno $"O Wicd e utilizado por esse painel, mas nao esta instalado, devo instalar agora?"
fi
  if [ $? = "0" ]; then
      bigsudo bigsynaptic --install wicd
  fi
else
  if [ $p_dialog = "" ]; then
kdialog --msgbox $"Clique no icone do Wicd que esta na Área de notificacao, perto do relogio, para configura-lo."
  fi
  if [ "$(ps -e | grep wicd-client)" = "" ]; then
  wicd-client
  fi
fi
